# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bgp-md5crack
pkgver=0.1
pkgrel=3
groups=('blackarch' 'blackarch-cracker')
pkgdesc='RFC2385 password cracker'
arch=('x86_64' 'aarch64')
url='http://www.c0decafe.de/'
license=('custom:unknown')
depends=('libpcap')
source=('http://c0decafe.de/tools/bgp_md5crack.tar.gz')
sha512sums=('c019dbd164175b7d9c95e3fe0ee67b524b9898e3b8c77984e1e259df3d493b9c950393a1c325a0c77cac521bcee7a2e03462c40ada6e176da235937296838f35')

build() {
  cd bgp_md5crack/trunk

  sh build.sh
}

package() {
  cd bgp_md5crack/trunk

  install -Dm 755 bgp_md5crack "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 wordfile "$pkgdir/usr/share/$pkgname/wordfile"
  install -m 644 test.pcap "$pkgdir/usr/share/$pkgname/test.pcap"
  install -m 644 test2.pcap "$pkgdir/usr/share/$pkgname/test.pcap2"
  install -m 644 test3.pcap "$pkgdir/usr/share/$pkgname/test.pcap3"
  install -m 644 bgp_1.cap "$pkgdir/usr/share/$pkgname/bgp_1.cap"
}

